﻿using System.Web.Mvc;
using Ninject;
using WeBlog.Interfaces;
using WeBlog.Models;
using WeBlog.Services;

namespace WeBlog.Core
{
    public abstract class ApplicationViewPage<TModel> : WebViewPage<TModel>
    {
        [Inject]
        public IUnitOfWork UnitOfWork { get; set; }

        public SiteConfiguration SiteConfiguration { get; private set; }
        
        public override void InitHelpers()
        {
            SiteConfiguration =  SiteManager.CurrentConfiguration;                
            
            base.InitHelpers();
        }
    }
}
